<?php
	// Genero el Encabezado para forzar el Download de los Datos
	header("Pragma: public");
	header("Expires: 0");
	header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
	header("Content-Type: application/vnd.ms-excel; charset=UTF-8");
	header("Content-Type: application/force-download");
	header("Content-Type: application/download");;
	header("Content-Disposition: inline; filename=\"backup-".date("Ymdhis").".xml\"");

	$objXmlHelper = new XmlHelper();
	$xml =  $objXmlHelper->serialize($datos_cliente); 
	//echo $objXmlHelper->header(); 

	echo $xml;
	exit();

/*
$parsed_xml = Set::reverse($parsed_xml);  // reversing the xml to array. this can be also used to convert an array to xml also.
*/
?>